{block name="circle_layout"}
	{include file="common:common_layout"}
{/block}
{extend name="common/layout" /}
{block name="style"}{/block}
{block name="content"}
<div class="base-layout">
  <div class="mainbox">
    <div class="base-tab-menu">
      <ul class="base-tabs-nav">
        <?php if(!empty($member_menu)){?>
        <?php foreach ($member_menu as $val){?>
        <li <?php if($val['menu_key'] == $menu_key){?>class="selected"<?php }?>><a href="<?php echo $val['menu_url'];?>"><?php echo $val['menu_name'];?></a>
        	{if condition="$val['menu_key'] eq 'theme'"}{if condition='$new_msg neq 0'}<sup>{$new_msg}</sup>{/if}{/if}
        	{if condition="$val['menu_key'] eq 'my_reply'"}{if condition='$ht_new_msg neq 0'}<sup>{$ht_new_msg}</sup>{/if}{/if}
        </li>
        <?php }?>
        <?php }?>
      </ul>
    </div>
    <div class="my-theme-list">
      <?php if(!empty($my_reply_array)){?>
      <ul class="group-theme-list">
        <?php foreach($my_reply_array as $val){?>
        	{if condition="$val['reply_replyid'] gt 0"}
	        {else/}
	        {/if}	
        <li>
          <dl class="theme-info" data-param="{t_id:<?php echo $val['theme_list']['theme_id'];?>,c_id:<?php echo $val['theme_list']['circle_id'];?>}">
            <dt><span class="theme-title"><a href="{:url('theme/theme_detail',array('c_id'=>$val['theme_list']['circle_id'],'t_id'=>$val['theme_list']['theme_id']))}" target="_blank"><?php echo $val['theme_list']['theme_name'];?>
            	{if condition="$val['ht_new_count'] neq 0"}<span style="color: red;">（新回复<?php echo $val['ht_new_count'];?>）</span>{/if}
            </a></span></dt>
            <dd class="theme-content">
              <div class="theme-file">
              </div>
              <div class="theme-summary"><?php echo replaceUBBTag($val['theme_list']['theme_content'], 0);?></div>
              <div class="theme-info"><?php echo $val['theme_list']['member_name'];?>于
                <time><?php echo date('Y-m-d', $val['theme_list']['theme_addtime']);?></time>
                发表自<span class="group-name">&#8220;<a href="{:url('group/index',array('c_id'=>$val['theme_list']['circle_id']))}"><?php echo $val['theme_list']['circle_name'];?></a>&#8221;</span>
                <?php if($val['theme_list']['lastspeak_name']){?>
                <span class="ml20">回复(<em><?php echo $val['theme_list']['theme_commentcount'];?></em>)</span>
                <?php }else{?>
                <span class="ml20">暂无回复</span>
                <?php }?>
                <span class="ml10"><a href="javascript:void(0);" onclick="likeNo($(this), {'t_id':<?php echo $val['theme_list']['theme_id'];?>,'c_id':<?php echo $val['theme_list']['circle_id'];?>});$(this).parents('li:first').remove();" class="edit">取消赞(<em nctype="like"><?php echo $val['theme_list']['theme_likecount'];?></em>)</a></span></div>
            </dd>
            <dd class="theme-content">
            	{if condition="$val['reply_replyid'] gt 0"}
            		{$val['member_name']} 回复 {$val['reply_replyname']} :{$val['reply_content']}
		        {else/}
		        	{$val['member_name']} 回复 "帖子名："{$val['theme_list']['theme_name']} :{$val['reply_content']}
		        {/if}
            </dd>
          </dl>
        </li>
        	
        	
        	
        	
        <!--<li>
          <dl class="theme-info" data-param="{t_id:<?php echo $val['theme_id'];?>,c_id:<?php echo $val['circle_id'];?>}">
            <dt><span class="theme-title"><a href="{:url('theme/theme_detail',array('c_id'=>$val['circle_id'],'t_id'=>$val['theme_id']))}" target="_blank"><?php echo $val['theme_name'];?></a></span></dt>
            <dd class="theme-content">
              <div class="theme-file">
                <?php if(!empty($affix_list[$val['theme_id']])){ $array = array_slice($affix_list[$val['theme_id']], 0, 3);?>
                <?php foreach ($array as $v){?>
                <span><a href="Javascript: void(0);"><img src="<?php echo themeImageUrl($v['affix_filethumb']);?>" class="t-img" /></a></span>
                <?php }?>
                <?php }?>
              </div>
              <div class="theme-summary"><?php echo replaceUBBTag($val['theme_content'], 0);?></div>
              <div class="theme-info"><?php echo $val['member_name'];?>于
                <time><?php echo date('Y-m-d', $val['theme_addtime']);?></time>
                发表自<span class="group-name">&#8220;<a href="{:url('group/index',array('c_id'=>$val['circle_id']))}"><?php echo $val['circle_name'];?></a>&#8221;</span>
                <?php if($val['lastspeak_name']){?>
                <span class="ml20">回复(<em><?php echo $val['theme_commentcount'];?></em>)</span>
                <?php }else{?>
                <span class="ml20">暂无回复</span>
                <?php }?>
                <span class="ml10"><a href="javascript:void(0);" onclick="likeNo($(this), {'t_id':<?php echo $val['theme_id'];?>,'c_id':<?php echo $val['circle_id'];?>});$(this).parents('li:first').remove();" class="edit">取消赞(<em nctype="like"><?php echo $val['theme_likecount'];?></em>)</a></span></div>
            </dd>
            <dd class="theme-content">最新回复：123123</dd>
          </dl>
        </li>-->
        <?php }?>
      </ul>
      <?php }else{?>
      <div class="no-theme"><span><i></i>您暂时还没有回复话题。</span></div>
      <?php }?>
    </div>
  </div>
  {include file="circle:circle:p_center_sidebar"}
</div>
<script type="text/javascript" src="__SITE_RESOURCE__/js/jquery.charCount.js"></script> 
<script type="text/javascript" src="__SITE_RESOURCE__/js/jquery.validation.min.js"></script> 
<script type="text/javascript">
$(function(){
	$(".theme-file .t-img").VMiddleImg({"width":100,"height":100});
});
</script>
{/block}